﻿@{
    Layout = "~/Views/Shared/_Dashboard.cshtml";
}
@{ 
    Ajax.Dna().Grid<Thread>()
             .Name("MyThreadGrid")
           .Columns(cols =>
           {
               cols.Bound(m => m.Title).ClientTemplate(@<text>
    <h2 class="d-forums-thread-title">
        <a title="${Title}" href="@Url.Content("~/community/thread/index")/${ID}" target="_blank">
            ${Title}</a>
    </h2>
    <div style="display: inline-block; margin-left: 5px; color: #A8A8A8;">
        @Html.Global("forums","By") ${Author}</div>
    </text>);
               cols.Bound(m => m.TotalPosts).Width(80).ClientTemplate(@<text><div style="text-align: center;
                   font-size: 16pt; color: #626262">
                   ${TotalPosts}</div></text>);
               cols.Bound(m => m.TotalReads).Width(80).ClientTemplate(@<text><div style="text-align: center;
                   font-size: 16pt; color: #626262">
                   ${TotalReads}</div></text>);
               cols.Bound(m => m.LastPosted).Width(150).ClientTemplate(@<text><div>
                   {{= $dna.formatDate(LastPosted)}}</div></text>);
           })
           .ClientBind(Url.Action("MyThreads", "Post", new { Area = "Community" }))
           .Pagable(1, 20)
           .Render();
}
@Html.StartupScripts()
